<template>
   <div>
       我是儿砸
       <button @click="callDaddy">打电话给爸爸</button>
   </div>
</template>

<script>
import connect from '../connector.js'
   export default {
       data () {
       return {

       }
   },
   methods: {
       callDaddy(){
        //    发射信号
           connect.$emit('phone','我没钱回家了')
       }
   }
 }
</script>

<style scoped>
 div{
        height: 100px;
        background-color: hotpink;
    }
</style>
